package com.xxl.base_ui

import android.content.Context
import com.blankj.utilcode.util.SizeUtils
import com.lxj.xpopup.XPopup
import com.lxj.xpopup.core.CenterPopupView
import com.lxj.xpopup.impl.FullScreenPopupView

/**
 * Title: CertDialog.kt
 * Description:证书弹窗
 * Created DateTime: 2023-04-13
 * Created by xxl.
 */
class CertDialog(context: Context) : FullScreenPopupView(context) {
    override fun getImplLayoutId(): Int {
        return R.layout.dialog_cert
    }

   /* var percentAdapter: DialogDeviceAdapter = DialogDeviceAdapter()
    lateinit var list: List<EquipmentEntity>
    private lateinit var close: ImageView
    private lateinit var recycleView: RecyclerView*/


    override fun onCreate() {
        super.onCreate()
      /*  close = findViewById(R.id.iv_close)
        recycleView = findViewById(R.id.recyclerView)*/
    }


    override fun beforeShow() {
        super.beforeShow()
        /*close.setOnClickListener {
            dismiss()
        }
        percentAdapter?.setList(list)
        recycleView.layoutManager = LinearLayoutManager(context)
        recycleView.setAdapter(percentAdapter)*/

    }

    /*fun setDataList(list: List<EquipmentEntity>) {
        this.list = list
    }*/

   fun showDialog(){
       XPopup.Builder(context)
           .asCustom(this)
           .show()

   }

}